package com.jingdun.sport.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jingdun.sport.bean.model.Questions;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface QuestionsMapper extends BaseMapper<Questions> {

	public void addQuestion(Questions question);

	public Questions getQuestionDetail(@Param("params") Map<String, Object> m);

	public void updateQuestion(Questions question);

	public List<Map<String,Object>> getPaginationQuestions(Page<Map<String,Object>> page, @Param("params") Map<String, Object> m);

}